package com.operate.bean.BO;

import lombok.Data;

/**
 * @author: ZZZ
 * @time: 2021/2/24 15:46
 */
@Data
public class CommonBo<T> {

    private String code;         //返回码
    private String message;      //返回描述信息
    private String responseTime; //响应时间
    private String BSN;       //服务唯一流水号
    private T result;   //数据

    public CommonBo(String code, String message, T result) {
        this.code = code;
        this.message = message;
        this.result = result;
    }

    public CommonBo(String code, String message, String responseTime, String BSN, T result) {
        this.code = code;
        this.message = message;
        this.responseTime = responseTime;
        this.BSN = BSN;
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(String responseTime) {
        this.responseTime = responseTime;
    }

    public String getBSN() {
        return BSN;
    }

    public void setBSN(String BSN) {
        this.BSN = BSN;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}